//
//  YXFrame.h
//  SeniorCarRepairing
//
//  Created by xmdfst on 16/9/29.
//  Copyright © 2016年 xmdfst. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UIViewAdditions.h"


#define FNavi           (44.f)
#define FStatus         [YXFrame statusBarHeight]
#define FTab            (49.f)

#define SCREEN_WIDTH        [YXFrame screen_width]
#define SCREEN_HEIGHT       [YXFrame screen_height]

#define k320Stretch(x)     [YXFrame get320Persent:x]
#define k375Stretch(x)     [YXFrame get375Persent:x]
#define k568Stretch(x)     [YXFrame get568persent:x]
#define k667Stretch(x)     [YXFrame get667Persent:x]

#define kStretch(x)         k375Stretch(x)
#define kHStretch(x)        k667Stretch(x)

#define kComBtnHeight       42
#define kComBtnPaddingX     kStretch(57)
#define kComFrontDis    kStretch(15)//用在首页



#define kGuideButtonIconWidth   80


@interface YXFrame : NSObject

CGFloat f320Stretch(CGFloat width);
CGFloat fScreenWidth();

+(CGFloat)screen_width;
+(CGFloat)screen_height;



+(CGRect)bound_full;
+(CGRect)bound_status;
+(CGRect)bound_status_navi;
+(CGRect)bound_status_navi_tab;
+(CGRect)bound_status_tab;
+(CGRect)bound_tab;
+(CGFloat)statusBarHeight;
+(CGFloat)get320Persent:(CGFloat)width;
+(CGFloat)get375Persent:(CGFloat)width;
+(CGFloat)get568persent:(CGFloat)height;
+(CGFloat)get667Persent:(CGFloat)height;
+(CGRect)get320StretchOfRect:(CGRect)rect;

+(CGRect)getStringFrame:(NSString*)string font:(UIFont*)font width:(CGFloat)width;



@end
